import { createComponent } from '@/components/@comp/create-component';

import FormView from './plugins/FormView';
import FormTransformColumns from './plugins/FormTransformColumns';
import FormGroupPlugin from './plugins/Group';
import FormStep from './plugins/FormStep';
// import FormRelation from './plugins/Relation';
// import ButtonSubmit from './plugins/ButtonSubmit';

const CommonForm = createComponent('CommonForm', [
  // FormRelation,
  FormTransformColumns,
  // ButtonSubmit,
  FormGroupPlugin,
  FormView,
  FormStep,
]);

export const Form = CommonForm;

export const FormGroup = CommonForm.Group;

export const useStep = CommonForm.useStep;
